/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const HSCodeRouter: RouteConfig = {
  path: '/HSCode',
  component: Layout,
  redirect: '/HSCode/HSStore',
  name: '海关商品一致性',
  meta: {
    title: '海关商品一致性',
    icon: 'form'
  },
  children: [
    {
      path: 'HSStore',
      // component: () => import('@/views/HSCode/HSStore/index'),
      name: '海关商品标准库',
      meta: { title: '海关商品标准库' }
    },
    {
      path: 'HSStoreDetail/:id',
      // component: () => import('@/views/HSCode/HSStore/detail'),
      name: 'HSStoreDetail',
      meta: {
        title: '海关商品库详情',
        hidden: true
      }
    },
    {
      path: 'drawbackManage',
      // component: () => import('@/views/HSCode/drawbackManage/index'),
      name: '税务商品库',
      meta: { title: '税务商品库' }
    },
    {
      path: 'taxInfo',
      // component: () => import('@/views/HSCode/drawbackManage/taxInfo'),
      name: '税务商品库详情',
      meta: { title: '税务商品库详情' }
      // hidden: true
    },
    {
      path: 'drawbackManage/import',
      // component: () => import('@/views/HSCode/drawbackManage/info'),
      name: '税务商品库导入',
      meta: { title: '税务商品库导入' }
      // hidden: true
    },
    // {
    //   path: 'declare',
    //   component: () => import('@/views/HSCode/dictionary/declare'),
    //   name: '申报要素',
    //   meta: { title: '申报要素' }
    // },
    // {
    //   path: 'supervise',
    //   component: () => import('@/views/HSCode/dictionary/supervise'),
    //   name: '监管条件',
    //   meta: { title: '监管条件' }
    // },
    // {
    //   path: 'CIQ',
    //   component: () => import('@/views/HSCode/dictionary/CIQ'),
    //   name: 'CIQ扩展码',
    //   meta: { title: 'CIQ扩展码' }
    // },
    // {
    //   path: 'quarantine',
    //   component: () => import('@/views/HSCode/dictionary/quarantine'),
    //   name: '检验检疫代码',
    //   meta: { title: '检验检疫代码' }
    // },
    // {
    //   path: 'units',
    //   component: () => import('@/views/HSCode/dictionary/units'),
    //   name: '计量单位',
    //   meta: { title: '计量单位' }
    // },
    {
      path: 'refundRates',
      // component: () => import('@/views/HSCode/refundRates/index'),
      name: '退税率查询',
      meta: { title: '退税率查询' }
    },
    {
      path: 'refundRates/error',
      // component: () => import('@/views/HSCode/refundRates/error'),
      name: '报错管理',
      meta: { title: '报错管理' }
    },
    // 海关商品综合库   synthesizeCode
    {
      path: 'AllHSCode',
      // component: () => import('@/views/HSCode/synthesizeCode/index'),
      name: '海关商品综合库',
      meta: { title: '海关商品综合库' }
    },
    {
      path: 'AllHSCodeDetail/:id',
      // component: () => import('@/views/HSCode/synthesizeCode/detail'),
      name: 'AllHSStoreDetail',
      meta: { title: '海关商品综合库详情' }
      // hidden: true
    }

  ]
}
export default HSCodeRouter
